package com.wander.patterns.structure.bridge;

/**
 * @description:桥接模式实例 适合多个维度的实际业务处理
 * @author: zhuyong
 * @create: 2019-09-04 10:57
 **/
public class Client {
    public static void main(String[] args) {
        Computer computer = new DeskComputer(new LenovoBrand());
        computer.sale();

        Computer padComputer = new PadComputer(new DellBrand());
        padComputer.sale();
        //后续需要加品牌直接单独加品牌,很好的解决了 BadComputer 的问题,可扩展性增强
    }
}
